from dao.task_error_request_dao import TaskErrorRequestDao
from models import TaskErrorRequest


class TaskErrorRequesService:
    def __init__(self):
        self.dao = TaskErrorRequestDao()

    def add_request(self, task: TaskErrorRequest):
        self.dao.add_request(task)

    def get_all_task_videos(self):
        return self.dao.get_all_task_videos()

    def delete_task_video_by_id(self, video_id: int):
        return self.dao.delete_task_video_by_id(video_id)
